package com.ruoyi.transaction.service.impl;

import com.ruoyi.transaction.domain.OrderItem;
import com.ruoyi.transaction.mapper.OrderItemMapper;
import com.ruoyi.transaction.mapper.OrderItemTmpMapper;
import com.ruoyi.transaction.service.IOrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by gzdmt01 on 2019/4/18.
 */
@Service
public class OrderItemService implements IOrderItemService {

    @Autowired
    private OrderItemMapper orderItemMapper;
    @Override
    @Transactional
    public int batchInsert(List<OrderItem> oderItemList) {
        return orderItemMapper.batchInsert(oderItemList);
    }
}
